<%= form_for(@menu) do |f| %>
<% if @menu.errors.any? %>
<div class="row-fluid">
	<div id="error_explanation" class="span12">
		<h2><%= pluralize(@menu.errors.count, "error") %> prohibited this menu from being saved:</h2>

		<ul>
			<% @menu.errors.full_messages.each do |msg| %>
			<li>
				<%= msg %>
			</li>
			<% end %>
		</ul>
	</div>
</div>
<% end %>

<div class="row-fluid">
	<div class="span2">
		<%= f.label :nome %>
	</div>
	<div class="span10">
		<%= f.text_field :nome %>
	</div>
</div>
<div class="row-fluid">
	<div class="span2">
		<%= f.check_box :ativo,
		{ :checked => @menu.id.nil? ? "checked" : @menu.ativo }  %>
	</div>
	<div class="span10">
		<%= f.label :ativo %>
	</div>
</div>
<div class="row-fluid">
	<div class="span12">
		<%= f.submit "Gravar", :class => "btn" %>
	
<% end %>
